package com.example.demo.service.impl;

import com.example.demo.entity.Shopapplication;
import com.example.demo.dao.ShopapplicationDao;
import com.example.demo.service.ShopapplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class ShopapplicationServiceImpl implements ShopapplicationService {
    @Autowired
   ShopapplicationDao shopapplicationDao;
    @Override
    public int insterShop(Shopapplication shopapplication) {
        return shopapplicationDao.insterShop(shopapplication);
    }

    @Override
    public int updateShop(Shopapplication shopapplication){
        return shopapplicationDao.updateShop(shopapplication);
    }

    @Override
    public int deleteShop(int eaid) {
        return shopapplicationDao.deleteShop(eaid);
    }

    @Override
    public List<Shopapplication> getShopAll() {
        return shopapplicationDao.getShopAll();
    }
   }
